export interface MaterialInterface {
  media_id: string
  content?: MaterialContentInterface
  name?: string
  update_time: number
  url?: string
  media_type?: MeterialType
}

export interface MaterialContentNewsItemInterface {
  title: string
  author: string
  digest: string
  content: string
  content_source_url: string
  thumb_media_id: string
  show_cover_pic: 1 | 0
  url: string
  thumb_url: string
  need_open_comment: 1 | 0
  only_fans_can_comment: 1 | 0
}

export interface MaterialContentInterface {
  news_item: MaterialContentNewsItemInterface[]
  create_time: number
  update_time: number
}

export interface MaterialResponseInterface {
  item: MaterialInterface[]
  total_count: number
  item_count: number
}

export type MeterialType = 'image' | 'video' | 'voice' | 'news'
